package com.su.kddq.utils;

import java.text.DecimalFormat;
import java.util.Random;

/**
 * 短信四位数验证码
 * @author sx
 */
public class RandomUtil {

    private static final Random random = new Random();

    private static final DecimalFormat fourdf = new DecimalFormat("0000");

    public static String getFourBitRandom() {
        return fourdf.format(random.nextInt(10000));
    }

}
